import React from 'react';
import { GlobalStyle } from '../../static/style'
import { BrowserRouter } from 'react-router-dom'
import 'antd/dist/antd.css'; // or 'antd/dist/antd.less'
import RouterView from '../../router/index'
import config from '../../router/config'
// import styled from 'styled-components'

// const BoxContainer = styled.div`
//   width: 100vw;
//   height: 100vh;
// `

const App = () => {
  return (
    <div className="App">
      <GlobalStyle></GlobalStyle>
      <BrowserRouter>
        <RouterView routes={config}></RouterView>
      </BrowserRouter>
    </div>
  );
}

export default App;
